package com.yztc.yidoutang.fragment.zhuye_fragment;

import android.content.Context;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
import android.widget.ImageView;
import android.widget.TextView;

import com.stx.xhb.xbanner.XBanner;

import de.hdodenhof.circleimageview.CircleImageView;

/**
 * 主页Fragment页面中MVP接口的统一管理类
 */
public class ZhuYeContract {
    interface View {
        // 初始化Banner、CardView、TabLayout中的数据
        void initBaseData();

        // 点击“交换”按钮时触发的事件
        void onChangeClicked(boolean isChecked);
    }

    interface Model {
        void initBaseData(Context context, XBanner banner, ImageView card, CircleImageView header, TextView title,
                          TextView author, TabLayout tabs, ViewPager vp);

        void onChangeClicked(boolean isChecked);
    }

    interface Presenter {
        void initBaseData(Context context, XBanner banner, ImageView card, CircleImageView header, TextView title,
                          TextView author, TabLayout tabs, ViewPager vp);

        void onChangeClicked(boolean isChecked);
    }
}